package com.example.deliveryapp;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;

public class DeliveryStatusActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);

        // 设置内容视图为您的布局XML
        setContentView(R.layout.delivery_status);
        ImageView back_deliverystatus = findViewById(R.id.back_deliverystatus);
        back_deliverystatus.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(DeliveryStatusActivity.this,CheckOutPageActivity.class);
                startActivity(intent);
            }
        });
        Button cancelorder_deliverystatus = findViewById(R.id.cancelorder_deliverystatus);
        cancelorder_deliverystatus.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(DeliveryStatusActivity.this,RateYourExperienceActivity.class);
                startActivity(intent);
            }
        });
    }
}
